# Contributor: knuxify <knuxify@gmail.com>
# Maintainer: knuxify <knuxify@gmail.com>
pkgname=py3-syndom
pkgver=0.0_git20220508 # Upstream hasn't tagged a release yet
_commit=81d5d99178a270039e147645ff2a2992a58bd2ad
pkgrel=0
# The project only builds the python bindings, or optionally a small
# CLI app; there are no shared libraries, thus the bindings are packaged
# directly rather than making a syndication-domination package
pkgdesc="Syndication Domination: Simple RSS/Atom parser library in C++ (python bindings)"
url="https://gitlab.com/gabmus/syndication-domination"
arch="all"
license="AGPL-3.0-or-later"
depends="python3"
makedepends="meson cmake pugixml-dev py3-pybind11 py3-pybind11-dev python3-dev
	tidyhtml-dev"
source="https://gitlab.com/gabmus/syndication-domination/-/archive/$_commit/syndication-domination-$pkgver.tar.gz"
builddir="$srcdir/syndication-domination-$_commit"

build() {
	abuild-meson . output
	meson compile ${JOBS:+-j ${JOBS}} -C output
}

check() {
	meson test --no-rebuild -v -C output
}

package() {
	DESTDIR="$pkgdir" meson install --no-rebuild -C output
}

sha512sums="
59b72e1047ba15f1fe6f574ddb20927abc0225a3d2bf831c6de081ac3d71f1af47920c96d40fb104d2e51deef41bf238652a95a3878c1405ab810d58ae0065d2  syndication-domination-0.0_git20220508.tar.gz
"
